package com.forenow.demo.Game;

import java.util.Scanner;

public class Goon {
    boolean boo=false;
    Scanner scanner=new Scanner(System.in);
    int userscore=0;
    int computerscore=0;
    JavaBean javaBean=new JavaBean();
    Ifwin ifwin=new Ifwin();
    public void g(String name,String name1){
        System.out.println("是否开始下一轮（y/n）");
        String ifgoon=scanner.next();
        if (ifgoon.equals("y")) {
            boo=true;
        }else if(ifgoon.equals("n")){
            System.out.println("姓名\t"+"得分");
            System.out.println(name+"\t"+userscore);
            System.out.println(name1+"\t"+computerscore);
            System.exit(0);
        }
    }
}
